package com.jadeen.controller.serverController;

import com.jadeen.common.domain.AjaxResult;
import com.jadeen.service.IIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Jadeen
 * @date: 2025/9/7 15:41
 */
@RestController
@RequestMapping("/index")
public class IndexController {
    @Autowired
    private IIndexService indexService;
    @GetMapping("/categoryResource")
    public AjaxResult categoryResource() {
        return indexService.categoryResource();
    }
//    @GetMapping("/dayGrowth")
//    public AjaxResult dayGrowth() {
//        return indexService.dayGrowth();
//    }
    @GetMapping("/downLoadAndView")
    public AjaxResult downLoadAndView() {
        return indexService.downLoadAndView();
    }
}
